package com.codefish.example.aop;

import com.codefish.framework.spring.aop.framework.AbstractMethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;

/**
 * @author <a href='https://gitee.com/hzf2281'>codefish</a>
 * @version 1.0.0
 * @since 2022/10/14 下午 05:13
 */
public class SimpleMethodInterceptor extends AbstractMethodInterceptor {
    @Override
    public Object invoke(MethodInvocation methodInvocation) throws Throwable {
        System.out.println("方法前置处理---------");
        Object value = methodInvocation.proceed();
        System.out.println("方法后置处理---------");
        return value;
    }
}
